
#pragma once

class CNateOnLadderMainDlg;

class CNateOnWndDropTarget : public COleDropTarget
{
public:
	CNateOnWndDropTarget();
	virtual ~CNateOnWndDropTarget();

	// Attributes
public:
	CNateOnLadderMainDlg* m_pDropWnd;
	BOOL                  m_bRegistered;

	// Operations
public:
	BOOL    Register   ( CNateOnLadderMainDlg *pDropWnd );
	virtual void Revoke();

	BOOL        OnDrop(CWnd* pWnd, COleDataObject* pDataObject, DROPEFFECT dropEffect, CPoint point);
	DROPEFFECT  OnDragEnter(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
	void        OnDragLeave(CWnd* pWnd);
	DROPEFFECT  OnDragOver(CWnd* pWnd, COleDataObject* pDataObject, DWORD dwKeyState, CPoint point);
	DROPEFFECT  OnDragScroll(CWnd* pWnd, DWORD dwKeyState, CPoint point);
protected:
	DECLARE_MESSAGE_MAP()
};


